﻿using AutoDeployForSims.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoDeployForSims.Entity
{
    
    public class AppStatusEntity : ViewModelBase
    {
        ////当前运行状态
        //public bool IsRunning { get; set; }
        ////显示名字
        //public string Name { get; set; }
        ////进程名字
        //public string AppName { get; set; }

        //PID
        //public long AppGuid { get; set; }
         
        //完整路径
        public string AppPath { get; set; }


        private bool isRunning;

        public bool IsRunning
        {
            get { return isRunning; }
            set
            {
                isRunning = value;
                RaisePropertyChanged("IsRunning");
            }
        }
        private string name;

        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }
        private string appName;

        public string AppName
        {
            get { return appName; }
            set
            {
                appName = value;
                RaisePropertyChanged("AppName");
            }
        }



        public AppStatusEntity(string name, string appName, string appPath)
        {
            IsRunning = false;
           // AppGuid = MyUtility.Utility.CreateGuid.GuidToLongID();
            Name = name;
            AppName = appName;
            AppPath = appPath;
        }
    }


}
